package com.sky.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;

public interface OrderService extends IService<Orders> {
    Result<OrderSubmitVO> submitOrder(OrdersSubmitDTO dto);

    Result<PageResult> getUserOrderHistory(OrdersPageQueryDTO dto,Long userId);

    Result<Orders> getOrderHistoryDetailById(Long id);

    Result<Object> cancelOrder(Long id);


    Result<Object> repetitionOrderById(Long id);

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;


    void reminderOrderById(Long id);


}






